package com.example.wan1.view.homenew;

import com.example.wan1.adapter.MixedAdapter;
import com.example.wan1.adapter.MixedHomeAdapter;
import com.example.wan1.di.ano.FragmentScope;
import com.example.wan1.model.MixedEntity;
import com.example.wan1.model.MixedHomeEntity;

import java.util.ArrayList;
import java.util.List;

import dagger.Binds;
import dagger.Module;
import dagger.Provides;

/***
 * @Author: zxd
 * @CreateDate: 2020/8/26 15:32
 * @Description:
 */
@Module
public abstract class NewHomeModule {

    @Binds
    abstract NewHomeContract.View newHomeView(NewHomeFragment newHomeFragment);

    @FragmentScope
    @Provides
    static MixedHomeAdapter provideMixedHomeAdapter(List<MixedHomeEntity> list) {
        return new MixedHomeAdapter(list);
    }

    @FragmentScope
    @Provides
    static List<MixedHomeEntity> provideMixedHomeEntity() {
        return new ArrayList<>();
    }
}
